﻿@model EditorialProyectos.Website.Models.ProjectViewModel

<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Title)
    @Html.KOTextBoxFor(model => model.Entity.Title)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Description)
    @Html.KOTextBoxFor(model => model.Entity.Description)
</div>
<div class="form-group">
    <a class="btn btn-primary" data-bind="click: Main.Page.ChangeHash.bind($data,'Benefit')">Beneficios</a>
</div>
<div class="form-group">
    <label for="file" class="col-lg-12">Image:</label>
    @Html.Image(model => model.Entity.Image, null, null, null, "filePreview")
</div>
<div class="form-group">
    <div class="fileUploader row">
        <div class="col-md-12">
            <img src="#" class="filePreview" />
        </div>
        <div class="col-md-12">
            <input type="text" class="fileName" placeholder="No file selected" disabled="disabled" />
            <span class="btn btn-primary">Select File</span>
            <input type="file" class="fileUpload file" data-bind="file: file, event:{ change: $root.FileUploaderChange}" />
        </div>
    </div>
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Cost)
    @Html.KOTextBoxFor(model => model.Entity.Cost)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.MinimalInversion)
    @Html.KOTextBoxFor(model => model.Entity.MinimalInversion)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.SocialAction)
    @Html.KOTextBoxFor(model => model.Entity.SocialAction)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.RevisionDate)
    @Html.KOTextBoxFor(model => model.Entity.RevisionDate)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.StartDate)
    @Html.KOTextBoxFor(model => model.Entity.StartDate)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.DeadLine)
    @Html.KOTextBoxFor(model => model.Entity.DeadLine)
</div>
<div class="form-group">
    @Html.LocalizedLabelFor(model => model.Entity.Category)
    @Html.KOLocalizedSelectFor(model => model.CategoryList, Model.CategoryList, "Name", "Id", "CategoryId")
</div>